<template>
  <div>
    <!-- 表头 -->
    <el-page-header @back="goBack" :content="content"> </el-page-header>
    <!-- 表单 -->
    <!-- <el-form size="small" ref="form" :model="form" label-width="80px">
      <el-form-item label="内容">
      <el-input v-model="form.content"></el-input>
      </el-form-item>
    </el-form> -->
    <el-form size="small" ref="form" :model="form" label-width="80px">
    <el-form-item >
      <el-input
        type="textarea"
        :autosize="{ minRows: 2, maxRows:80}"
        placeholder="请输入内容"
        v-model="form.content" >
      </el-input>
      </el-form-item>
    </el-form>


  </div>
</template>


<script>
import { post } from '@/utils/request'
export default {
  data(){
    return {
      content:"文章详情",
      form:{}
    }
  },
  methods:{
    // 返回
    goBack(){
      this.$router.go(-1)
    }
  },
  created(){
    // 页面加载出来的时候，将路由中的参数拿到，放到this.form 中
    this.form = this.$route.query;
  }

}
</script>
<style lang="sass" scoped>

</style>